import java.util.Scanner;

public class java6 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("第一个数");
        int l=scanner.nextInt();
        System.out.println("第二个数");
        int t=scanner.nextInt();
       double f=l+t;
        System.out.println(f);
        double y=l-t;
        System.out.println(y);
    }
}
